package com.huanxing.cloud.common.security.exception;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huanxing.cloud.common.security.component.Auth2ExceptionSerializer;

/** @Author lijx @Date 2022/1/27 11:33 */
@JsonSerialize(using = Auth2ExceptionSerializer.class)
public class InvalidException extends Auth2Exception {
  public InvalidException(String msg, Throwable t) {
    super(msg);
  }

  @Override
  public String getOAuth2ErrorCode() {
    return "invalid_exception";
  }

  @Override
  public int getHttpErrorCode() {
    return 426;
  }
}
